home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2003 July / CD 1 / APC0307D1.iso / fwv / xmlspy / files / XMLSPYEntComplete5.exe / Data1.cab / _6EE9421EEE4A4A01936A2C7A79C3E7BC < prev    next >
Encoding:
Text File  |  2003-04-03  |  814 b   |  39 lines

  1. /**
  2.  * XmlException.java
  3.  *
  4.  * This file was generated by XMLSPY 5 Enterprise Edition.
  5.  *
  6.  * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
  7.  * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
  8.  *
  9.  * Refer to the XMLSPY Documentation for further details.
  10.  * http://www.altova.com/xmlspy
  11.  */
  12.  
  13.  
  14. package com.altova.xml;
  15.  
  16.  
  17. public class XmlException extends RuntimeException {
  18.     protected java.lang.Exception    innerException;
  19.     protected String                message;
  20.  
  21.     public XmlException(String text) {
  22.         innerException = null;
  23.         message = text;
  24.     }
  25.  
  26.     public XmlException(java.lang.Exception other) {
  27.         innerException = other;
  28.         message = other.getMessage();
  29.     }
  30.  
  31.     public String getMessage() {
  32.         return message;
  33.     }
  34.  
  35.     public java.lang.Exception getInnerException() {
  36.         return innerException;
  37.     }
  38. }
  39.